function genModel0(net, solv, cmd, Train, Test)

%%
cmd = mycaffe.remove_empty_fields(cmd);
cmd = mycaffe.rmFields(cmd, {'weights', 'snapshot'});

net = mycaffe.net(net, solv, cmd, Train, Test);
solv = mycaffe.solv(net, solv, cmd);

%%
mycaffe.init(cmd.solver_mode);
solver = caffe.Solver(solv.file);  % !!! forward ,and we get data
% solver.net.save(fullfile(net_path, 'VDSR_initparam.caffemodel')) % change your name !!!
caffemodel = [solv.snapshot_prefix '-init.caffemodel'];
solver.net.save(caffemodel);
mycaffe.reset_all();
fprintf('The init caffemodel is as follows:\n    %s\n', caffemodel);
% disp('Init Successfully! ')
